﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace HotelMgr.Models
{
    public class Customer
    {
        public Guid CustomerID { get; set; }

        /// <summary>
        /// 顾客姓名
        /// </summary>
        [DisplayName("顾客姓名")]
        [StringLength(20)]
        public string Name { get; set; }

        /// <summary> 
        /// 身份证
        /// </summary>
        [DisplayName("身份证")]
        [StringLength(20)]
        public string IDCard { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [DisplayName("性别")]
        [StringLength(20)]
        public string Sex { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [DisplayName("电话")]
        [StringLength(24)]
        public string Phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        [StringLength(50)]
        public string Comment { get; set; }


        public virtual ICollection<Order> Orders { get; set; }
    }
}